<h1 style="text-align: center; color: rgba(255,255,255,.6); ">
    <div class="pagination">
        <span class="step-links">
            {% if contacts.has_previous %}
                <a href="?page={{ contacts.previous_page_number }}">上一页</a>
            {% endif %}
            <span class="current">
                第 {{ contacts.number }} 页/共 {{ contacts.paginator.num_pages }} 页
            </span>
    
            {% if contacts.has_next %}
                <a href="?page={{ contacts.next_page_number }}">下一页</a>
            {% endif %}
        </span>
    </div>
</h1>